luci-app-travelmate: sync with travelmate 2.0.5-3
authorDirk Brenken <[email protected]>
Sun, 22 Aug 2021 07:14:54 +0000 (09:14 +0200)
committerDirk Brenken <[email protected]>
Sun, 22 Aug 2021 07:14:54 +0000 (09:14 +0200)
* adapt the travelmate UI to support the changed 'trm_maxscan' option

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit fd7494ffb19d1c0197ddcb048c381b44cdb205e5)
Signed-off-by: Dirk Brenken <[email protected]>
applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js

index 16d933e691bc3cf7c8d5bfe2267e0b7c93e14e5d..9dde97dd3476e415bbf317dcdbff37d2d920d11e 100644 (file)
@@ -362,9 +362,9 @@ return view.extend({
                o.datatype = 'range(30,300)';
                o.rmempty = true;
 
-               o = s.taboption('additional', form.Value, 'trm_scanbuffer', _('Scan Buffer Size'), _('Buffer size in bytes to prepare nearby scan results.'));
-               o.placeholder = '1024';
-               o.datatype = 'range(256,4096)';
+               o = s.taboption('additional', form.Value, 'trm_maxscan', _('Scan Limit'), _('Limit the nearby scan results to process only the strongest uplinks.'));
+               o.placeholder = '10';
+               o.datatype = 'range(1,30)';
                o.rmempty = true;
 
                o = s.taboption('additional', form.ListValue, 'trm_captiveurl', _('Captive Portal URL'), _('The selected URL will be used for connectivity- and captive portal checks.'));